package cn.kxm.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


import cn.kxm.pojo.Part;
import cn.kxm.pojo.PartDetail;
import cn.kxm.pojo.PartType;
import cn.kxm.pojo.Storageinfo;

public interface PartService {
	 public List<Part> getPartList(String partBrand,String partNo,String partName,Integer partTypeId,Integer pageNo,Integer pageSize);
	 public int getPartCount(String partBrand,String partNo,String partName,Integer partTypeId);
	 public List<PartType> getPartTypeList();
	 public List<Map<String, Object>> getPartListByBillCode(String billCode);
	 
	 
	 public List<Map<String, Object>>getByCode(String code);
		/**
		 * 根据编号查询part与询价信息
		 * @param code
		 * @return
		 */
	 public List<Map<String, Object>>getPart_ib(String code);
	
	 public List<Map<String, Object>> getPartListByCodes(String [] codes); 
	 
	 public List<Map<String, Object>> getPartListAndCompanyName(String customName,Integer page,
	    		Integer size,String size2,String partNo,String name,Integer type); 
	 public int getPartListCount(String size2,String partNo,String name,Integer type);
	 
	 public List<Map<String, Object>> getPartDetailList(Integer page,Integer rows,Part part,String mold);
	 
	 public int getPartDetailListCount(Part part,String mold);
	 
	 public boolean addPart(Part part,PartDetail detail,Storageinfo info);
	 
	 public Part getPartByCode(String code);
	 
	 public boolean modifyPartByPart(Part part,PartDetail detail);
	 
	 public boolean delPartByCode(String code);
	 
	 public List<Map<String, Object>> getPartMapList(Integer page,Integer size,String partCode,String customName,Integer stroageStatus);
	
	 public int getPartMapListCount(String partCode,String customName,Integer stroageStatus);
}
